package com.qf.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsProductMapper;
import com.qf.pojo.DtsGoodsProduct;
import com.qf.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private DtsGoodsProductMapper dtsGoodsProductMapper;

    @Override
    public int count() {
        QueryWrapper<DtsGoodsProduct> wrapper = new QueryWrapper<>();
        wrapper.eq("deleted",false);
        Integer count = dtsGoodsProductMapper.selectCount(wrapper);
        return count;
    }
}
